#pragma once

#include "include.h"
#include "IOphies.h"
#include "PPOphiesFactory.h"
#include "DataHelper.h"
#include "InstanceInternal.h"


//------------------------------------------------------
// MsToolbarCtrl link to the appropriate dll or static library:
//------------------------------------------------------
#if defined(_PPOPHIES_STATIC_)					//====== Static Library ======
#	define _PPOPHIES_LINK_TYPE	"lib"			// DLL Link
#	if defined(_DEBUG)
#		if defined(_UNICODE)
#			define _PPOPHIES_FILE_SUFFIX	"ds_"	// Debug Unicode Static
#		else
#			define _PPOPHIES_FILE_SUFFIX	"dms_"	// Debug MBCS Static
#		endif
#	else
#		if defined(_UNICODE)
#			define _PPOPHIES_FILE_SUFFIX	"s_"	// Release Unicode Static
#		else
#			define _PPOPHIES_FILE_SUFFIX	"ms_"	// Release MBCS Static
#		endif
#	endif
#else											//===== Dynamic Library ======
#	define _PPOPHIES_LINK_TYPE	"dll"					// DLL Link
#	if defined(_DEBUG)
#		if defined(_UNICODE)
#			define _PPOPHIES_FILE_SUFFIX	"UD"		// Debug Unicode
#		else
#			define _PPOPHIES_FILE_SUFFIX	"D"//"dm_"	// Debug MBCS
#		endif
#	else
#		if defined(_UNICODE)
#			define _PPOPHIES_FILE_SUFFIX	"U"			// Release Unicode
#		else
#			define _PPOPHIES_FILE_SUFFIX	""//"m_"	// Release MBCS
#		endif
#	endif
#endif


#define _PPOPHIES_FILENAME	"PPOPHIES" _PPOPHIES_FILE_SUFFIX
#define _PPOPHIES_LIBFILE	_PPOPHIES_FILENAME	".lib"

#pragma comment(lib, _PPOPHIES_LIBFILE) 
#pragma message("Automatically linking with " _PPOPHIES_FILENAME "." _PPOPHIES_LINK_TYPE)
